from odoo import api, fields, models, tools, _
class StockPicking(models.Model):
    _inherit = "stock.picking"
    _description = "Transfer"

    project_code=fields.Char('工程编号',related="partner_id.x_project_code")
    is_company=fields.Boolean('是否为公司',related="partner_id.is_company")